package com.fp.m7.shared.dto;

import java.io.Serializable;

/**
 * DTO for user data.
 * 
 * @author 7
 */
public class UserDto extends BaseDto {
    private static final long serialVersionUID = 3301016160024037990L;

    private String nickname;
    private String avatarUrl;

    public UserDto() {
    }

    public UserDto(Serializable id, String nickname, String avatarUrl) {
        this.id = id;
        this.nickname = nickname;
        this.avatarUrl = avatarUrl;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    @Override
    public String toString() {
        return new StringBuilder("UserDto [id=").append(id) //
                .append("; nickname=").append(nickname) //
                .append("; url=").append(avatarUrl) //
                .append("]").toString();
    }
}
